#ifndef __BINARYSORTTREE_H__
#define __BINARYSORTTREE_H__

typedef int TreeData;
//数据结点 
typedef struct BTnode
{
	TreeData data;
	struct BTnode *lchild;
	struct BTnode *rchild;
}BTnode;
BTnode *Insert_node(BTnode *r,TreeData d);
BTnode *create_sort_tree();
BTnode *delete_node(BTnode *r,TreeData x);
BTnode *delete_node_r(BTnode *r,TreeData x);
void pre_order(BTnode *r);
void mid_order(BTnode *r);
void post_order(BTnode *r);
void level_print(BTnode *r);
#endif
